package com.cube.dp.adapter;

import com.cube.dp.adapter.fs.third.IThirdPartyFileOperationService;
import com.cube.dp.adapter.fs.third.dto.FileUploadDto;

/**
 * @author litb
 * @date 2022/5/21 17:16
 * <p>
 * 假装这是一个项目
 */
public class ProjectClient {

    public static void main(String[] args) {
        IThirdPartyFileOperationService operationService =
                //切换到oss实现,这一步在文件服务工程下完成即可,切换实现并完全移除自研文件服务后升级打包让各个依赖方重新引入
                FileOperationFactory.getInstance(EnumFileOperationType.OSS);
        operationService.upload(new FileUploadDto());

        operationService.download("this is fileId");
    }
}
